You can use a simple question in a survey to collect a single response from users. For example, you can ask whether a user is currently employed or to enter a date of birth.
Click Designer Studio > Survey Management, and then click Edit next to the name of a survey that has at least one question page defined.
In the list of question pages for the survey, right-click the name of a question page and select Add Simple Question > New.
In the Name field of the Add Simple Question dialog box, enter a short description that is associated with the underlying question rule.
You can change the value in the ID field, which is populated based on the value that you provide in the Name field.
Optional: Expand the Settings section to change the class or ruleset for the question.
By default, questions apply to the same class as the survey with which they are associated.
In the Question field, enter the text that is displayed when users reach the question in the survey.
Format the fields that users populate to answer the question.
In the Answer list, select Freeform.
In the Format list, select Date or Date Time, based on the expected response to the question.
In the Answer list, select Freeform.
In the Format list, select Text or TextArea, based on the expected response to the question.
Optional: Expand the Advanced section to define how the text is displayed.
You can use the following fields:
Rows - Enter an integer for the height of the text area field.
Columns - Enter an integer for the width of the text area field.
Size of text box - Enter an integer for the width of the text input field.
In the Answer list, select Radio buttons.
In the Drop down type list, select Data page.
In the Data page field, press the Down Arrow key and select a data page that returns a list of options.
You can pass parameters in the Value field if they are supported by the data page.
In the Property for value field, press the Down Arrow key and select a property on the data page that stores options for the radio buttons.
Optional: In the Property for display text field, press the Down Arrow key and select a different property on the data page that stores labels for the radio buttons.
Optional: Expand the Advanced section to change the default presentation of the radio buttons.
You can use the following fields:
Display of radio buttons - Select an option to align the radio buttons in columns or rows.
Number of items before wrap - Enter the number of radio buttons to display in each row or column.
In the Answer list, select Radio buttons.
In the Drop down type list, select Prompt list.
In the grid that is displayed, add one row for each radio button in the list.
You can use the following fields:
When - Select a when condition that controls whether the radio button is displayed.
Display value - Enter the label to display.
Value - Enter the value to copy to the clipboard when the radio button is clicked.
Selected - Click to set the default radio button in the list.
Optional: Expand the Advanced section to change the default presentation of the radio buttons.
You can use the following fields:
Display of radio buttons - Select an option to align the radio buttons in columns or rows.
Number of items before wrap - Enter the number of radio buttons to display in each row or column.
In the Answer list, select Dropdown menu.
In the Drop down type list, select Data page.
In the Data page field, press the Down Arrow key and select a data page that returns a list of options.
You can pass parameters in the Value field if they are supported by the data page.
In the Property for value field, press the Down Arrow key and select a property on the data page that stores options for the list.
Optional: In the Property for display text field, press the Down Arrow key and select a different property on the data page that stores labels for the options in the list.
In the Answer list, select Dropdown menu.
In the Drop down type list, select Prompt list.
In the grid that is displayed, add one row for each option in the list.
You can use the following fields:
When - Select a when condition that controls whether the option is displayed.
Display value - Enter the label to display.
Value - Enter the value to copy to the clipboard when the option is selected.
Selected - Click to set the default option in the list.
In the Answer list, select Checkbox.
In the Answer list, select File.
You can validate the answers to questions in a survey by displaying an error when the answer is invalid. To perform validation when the user answers the question:
Click Save.
The simple question is created in the class and ruleset that you provide. You can view, edit, or copy it by using the Survey Management landing page. You can also reuse this question in other surveys or flows that use the Question smart shape.
Note: This functionality is available when you purchase and install the PegaSurvey application.
Previous: Adding a question page to a survey |